<?php
namespace app\admin\model;

use think\Model;

class Article extends Model{
    public function getArticleTypeAttr($value){
        $status = [-1=>'禁用',1=>'待审核',2=>'正常'];
        return $status[$value];
    }
}